package guowei.guliorder.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import guowei.common.utils.PageUtils;
import guowei.guliorder.order.entity.OrderEntity;
import guowei.guliorder.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author guoguo
 * @email 1573746397@qq.com
 * @date 2023-05-21 12:20:59
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getAllOrderInfo() throws ExecutionException, InterruptedException;

    SubmitOrderRespnseVo submitRespons(OrderSubmitVo vo);

    OrderEntity getByOrderSn(String orderSn);

    void rollbackMq(OrderEntity orderEntity);

    PayVo getPayVoByOrderSn(String orderSn);

    PageUtils getOrdersByMemberId(Map<String, Object> params);

    String dealWithAliPay(PayAsyncVo payAsyncVo);
}

